<extend name="Base/commoncenter"/>

<block name="body">
    <!----第一次使用还没有包裹---->
    <div class="row" style="margin-bottom: 30px;"  <empty name="_list">style="display:none;"</empty>>
        <div class="col-md-10">
            <ul class="nav nav-pills" role="tablist">
                <li role="presentation" <eq name="type" value="-1">class="active"</eq>><a href="{:U('order','type=-1')}">全部</a></li>
                <li role="presentation" <eq name="type" value="3000">class="active"</eq>><a href="{:U('order','type=3000')}">打包称重</a></li>
                <li role="presentation" <eq name="type" value="4000">class="active"</eq>><a href="{:U('order','type=4000')}">等待付款</a></li>
                <li role="presentation" <eq name="type" value="5000">class="active"</eq>><a href="{:U('order','type=5000')}">等待发货</a></li>
                <li role="presentation" <eq name="type" value="6000">class="active"</eq>><a href="{:U('order','type=6000')}">运输途中</a></li>
                <li role="presentation" <eq name="type" value="7000">class="active"</eq>><a href="{:U('order','type=7000')}">签收完毕</a></li>
            </ul>
        </div>
        <div class="col-md-2"><a class="btn btn-success" href="{:U('Center/warehouse','CID=-1')}">+ 申请出库转运</a></div>
    </div>
    <hr/>
    <div style="padding: 5px;background-color: #D7F3EE">
        <table class="table table-striped" style="background-color: #fff">
            <thead>
                <tr>

                    <th class="">订单编号</th>
                    <th class="">仓库名称</th>       
                    <th class="">包裹物品</th>    
                    <th class="">包裹重量</th>
                    <th class="">运单金额</th>
                    <th class="">状态</th>              
                    <th class="">操作</th>
                </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td>{$vo.id} </td>	
                        <td>{$vo.wid|get_warehouse_name} </td>
                        <td>
                    <volist name="vo.packages" id="vs">
                        [{$vs.id}]<b>{$vs.name}</b>                       
                        <br/>
                    </volist>
                    </td>
                    <td><gt name="vo.bulkfactor" value="$vo.weight">体积重：{$vo.bulkfactor|get_kg}KG<else/>秤重：{$vo.weight|get_kg}KG</gt></td>
                    <td class="text-center"><gt name="vo.money" value="0"><span style="font-weight: bold;color:#17AE92">{$vo.money}元</span><else/>尚未计算</gt></td>
                    <td style=" border-right: #F3F3F3 solid 3px;  border-left: #F3F3F3 solid 3px; text-align:left">{$vo.status}|{$vo.status_text}<i class='glyphicon glyphicon-info-sign' style='color: #D5D5D5;padding-left: 3px;'></i>
                        <div class="progress">
                            <div class="progress-bar progress-bar-success progress-bar-striped active"  role="progressbar" aria-valuenow="{$vo.status}" aria-valuemin="0" aria-valuemax="7000" style="width: {$vo.status|get_baifengbi}%">
                                <span class="sr-only">45% Complete</span>
                            </div>
                        </div>

                    <td style="text-align: left;">
                        <a href="{:U('Center/details','oid='.$vo['id'].'')}" class="btn-default btn">订单详情</a>
                        <in name="vo.status" value="3000,4000">
                        <a href="{:U('Center/pay?oid='.$vo['id'])}" class='btn-danger btn  <eq name="vo.status" value="3000">disabled</eq> <qt name="vo.status" value="4000">hidden</qt>'>我要付款</a>
                        </in>
                        <in name="vo.status" value="5000,6000">
                        <a href="{:U('Center/signin?oid='.$vo['id'])}" class='btn-success btn  <eq name="vo.status" value="5000">disabled</eq> <qt name="vo.status" value="6000">hidden</qt>'>确认收货</a>
                        </in>
                    </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="10" class="text-center" style="padding: 20px;"> 暂时还没有数据! </td>
            </notempty>

        </table>
    </div>


</block>